﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GDF_kaart_inlezen
{
    class Bibliotheek
    {
        public Dictionary<int, Strategy> types;

        public Bibliotheek()
        {
            types = new Dictionary<int, Strategy>();
            types.Add(24, new Edge());
        }

        public void process(string line)
        {
            string[] splitted = SplitLine(line);
            int id = Int32.Parse(splitted[0]);
            
            types[id].process();
        }

        public string[] SplitLine(string line)
        {
            string[] res = line.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
            List<string> arrayList = new List<string>(res);
            return arrayList.ToArray();
        }
    }
}
